<%@ page import="belleza.relativa.Persona" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'persona.label', default: 'Persona')}"/>
    <title>Alta Usuario</title>
</head>

<body>

<div id="create-persona" class="content scaffold-create" role="main">
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${personaInstance}">
        <ul class="errors" role="alert">
            <g:eachError bean="${personaInstance}" var="error">
                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                        error="${error}"/></li>
            </g:eachError>
        </ul>
    </g:hasErrors>
    <g:form action="save" enctype="multipart/form-data">
        <fieldset class="form">
            <g:render template="form"/>
        </fieldset>
        <fieldset>
            <div align="center">
                <table border="1" width="800px">
                    <tr>
                        <th bgcolor="gray" style="color: #ffffff;text-align: left">
                            <b>Acuerdos y Términos de Uso</b>
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <g:textArea name="legalText" style="width: 800px; height: 800px; resize: none;" readonly="readonly" value="${message(code: 'terminosYcondiciones')}" cols="800" rows="800"/>
                        </td>
                    </tr>
                </table>
            </div>
        </fieldset>
        <fieldset style="text-align: center">
            <g:submitButton name="create" class="button"
                            value="Aceptar acuerdos y terminos de uso"/>
        </fieldset>
    </g:form>
</div>
</body>
</html>
